package org.miku.junit;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Test;
import org.miku.db.SQLHelper;
import org.miku.module.user.LoginManager;

public class LoginManagerTest {
	SQLHelper sqlHelper = new SQLHelper("localhost",
			3306, "db_onlinenote", "root", "aihejuhuacha");
	LoginManager loginMgr = new LoginManager(sqlHelper);
	
	@After
	public void closeConnect() {
		sqlHelper.close();
	}
	
	@Test
	public void testLogin() {
		boolean ret = loginMgr.login("Toy", "passwords");
		assertEquals(false, ret);
	}

}
